﻿using STF.Blog.Dtos;
using System;
using System.Collections.Generic;
using System.Linq;
using System.Text;
using System.Threading.Tasks;

namespace STF.Blog.IService
{
    /// <summary>
    /// 回复表
    /// </summary>
    public interface IReplyService
    {
        public Task<int> AddReplyAsync(int pid,string content,int parentId,int likesum,int uid);
        public Task<int> UpdateReplyAsync(int id, int pid, string content, int parentId, int likesum, int uid);
        public Task<int> PutTrashAsync(int id);
        public Task<int> RestoreAsync(int id);
        public Task<int> DeleteReplyAsync(int id);
        public Task<List<ReplyDto>> GetAllReplyAsync(int deleteId = 1);
        public Task<List<ReplyDto>> GetByNameAsync(string content, int deleteId = 1);
        public Task<ReplyDto> GetByIdAsync(int id);
        public Task<Dictionary<int, List<ReplyDto>>> GetByReplyInfoListAsync(List<CommentDto> Comment);
    }
}
